<extend name="Public/base" />
<block name="content">
<div id="content">
	<div id="content-header">
		<div id="breadcrumb">
			<a href="{:U('Index/index')}" title="首页" class="tip-bottom"><i class="icon-home"></i> 首页</a>
			<a href="{:U('Base/index')}">基础数据</a>
			<a class="current">需求维护</a>
		</div>
	</div>
	<div class="container-fluid">
		<br>
		<button class="btn btn-info" onclick="location.href='{:U('addDemand')}'">新 增</button>
		<button class="confirm btn btn-danger ajax-post" url="{:U('setDemandStatus',array('model'=>'ServiceDemand','status'=>-1))}" target-form="ids">删 除</button>
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
					<div class="widget-content ">
						<form id="export-form" method="post" action="">
							<table id="config_table" class="table table-striped with-check">
								<thead>
									<tr>
										<th width="5%"  class="row-selected">
				                            <input class="checkbox check-all" type="checkbox">
				                        </th>
				                        <th width="5%" class="taskStatus">序号</th>
				                        <th width="40%" class="taskStatus">名称</th>
				                        <th width="30%" class="taskStatus">创建时间</th>
				                        <th width="20%" class="taskStatus">操作</th>
									</tr>
								</thead>
								<tbody>
									<notempty name="_list">
						                <volist name="_list" id="val" >
						                    <tr>
						                        <td><input class="ids row-selected" type="checkbox" name="ids[]" value="{$val.demand_id}"></td>
						                        <td class="taskStatus">{$i}</td>
						                        <td class="taskStatus">
						                            <a href="{:U('demandContent?pid='.$val['demand_id'])}">{$val.demand_name|strip_tags}</a>
						                        </td>
						                        <td class="taskStatus">{$val.create_time|date='Y-m-d H:i:s',###}</td>
						                        <td class="taskStatus">
						                            <a title="编辑" href="{:U('editDemand?id='.$val['demand_id'])}"><i class="icon-pencil"></i> 编辑</a>　
						                            <a class="confirm ajax-get" title="删除" href="{:U('setDemandStatus',array('model'=>'ServiceDemand','ids'=>$val['demand_id'],'status'=>-1))}"><i class="icon-remove"></i> 删除</a>
						                        </td>
						                    </tr>
						                </volist>
									<else/>
										<tr>
											<td colspan="10" class="taskStatus"> Oh! 暂时还没有内容! </td>
										</tr>
									</notempty>
								</tbody>
							</table>
							<div class="dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_full_numbers" id="DataTables_Table_0_paginate">
								{$_page}
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
highlight_subnav("{:U('Base/index')}");
</script>
</block>
